<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../vue.js"></script>
</head>

<body>
    <div id="app">
        <h1>插值语法</h1>
        <h1>Hello {{name}}</h1>
        <hr>
        <h1>指令语法</h1>
        <a v-bind:href="url.toUpperCase()" v-bind:x="hello">{{bilibili.name}}</a>
    </div>

    <script>
        new Vue({
            el: '#app',
            data: {
                name: 'Cyan',
                url: 'https://www.bilibili.com',
                hello: '你好',
                bilibili: {
                    name: '哔哩哔哩'
                }
            }
        })
    </script>
</body>

</html>